package com.spider.service;

import java.util.List;

import org.apache.hadoop.hbase.KeyValue;
import org.apache.hadoop.hbase.client.Result;
import org.apache.hadoop.hbase.util.Bytes;

import com.spider.dao.HBaseDAOImp;
import com.spider.dao.HBaseDao;

public class QuesPageProcessAnswer {
	HBaseDao dao = new HBaseDAOImp();
	public List<String> getUrl() {
		List<Result> list = dao.getRows("Test", "1");
		for (Result result : list) {
			for (KeyValue key : result.raw()) {
				System.out.println("Qualifier:"+Bytes.toString(key.getQualifier()));
				System.out.println("Value:"+Bytes.toString(key.getValue()));
			}
			System.out.println("------------------");
		}
		return null;
	}
	
	public static void main(String[] args) {
		QuesPageProcessAnswer process = new QuesPageProcessAnswer();
		process.getUrl();
	}
}
